<?php
/**
 * 配置文件
 */
return array(
    'LOG_REAL_PATH' => '/data/wwwlogs/bbt',
    'IMG_PATH' => 'http://yyy.bbtpictures.com/',
	'APP_IMG_PATH' => 'http://thumb.img.baobaot.com/',

    'ALIDAY_APPKEY' => '23283987',
    'ALIDAY_SECRETKEY' => '43b88dd8ee34c3f17c1104b80960b0d0',
    'ALIDAY_SIGNNAME' => '抱抱堂系统',

    'GM_TOKEN' => 'BOBOTANG',
    'GM_APPID' => '',
    'GM_APPSERCRET' => '',

    'PHONEVERIFY_TIMEOUT' => 3600/2,
    'PHONEVERIFY_COUNT_LIMIT' => 3, //媒体获取的验证码条数

	'DAY_SHAKE_COUNT' => 1000, //限制用户当天的摇奖次数
	'HUODONG_DAY_SHAKE_COUNT' => 1000, //限制用户当天的摇奖次数

	'BJ_AREA' => array('40.504265', '116.755818', '39.612426', '115.725334'), // 北、东、南, 西

	'AES_KET' => 'AkhUnWzQkZ3no3Ze',
	'AES_IV' => 'rID7fHXkeUXcgpyd',
	'JWT_KET' => 'ZF1RwrsckIA37hQx',

    'CARD_TYPE' => array( // 卡券类型
        array(id => 1, name=>'红包'),
        array(id => 2, name=>'核销'),
        array(id => 3, name=>'链接'),
        array(id => 4, name=>'广告'),
        array(id => 5, name=>'实物'),
    ),
    'CARD_STATUS' => array( // 卡券状态
        array(id => 0, name=>'保存'),
        array(id => 1, name=>'上线'),
        array(id => 2, name=>'待审核'),
        array(id => 3, name=>'审核未通过'),
        array(id => 4, name=>'暂停'),
        array(id => 10, name=>'结束'),
		array(id => 11, name=>'强制结束'),
    ),
	'CARD_STATUS_ENUM' => [
		'CARD_STATUS_SAVE' => 0, //保存
		'CARD_STATUS_ONLINE' => 1, //上线
		'CARD_STATUS_PENDING' => 2, //待审核
		'CARD_STATUS_NOT_PASS' => 3, //审核未通过
		'CARD_STATUS_PAUSE' => 4, //暂停
		'CARD_STATUS_End' => 10, //结束
		'CARD_STATUS_FORCED_END' => 11, //强制结束
	],
	'SHOP_TYPE' => array(
		array('id'=>'100','name'=>'电影院'),
		array('id'=>'105','name'=>'私人影吧'),
		array('id'=>'110','name'=>'奶茶/水吧'),
		array('id'=>'120','name'=>'商超'),
		array('id'=>'125','name'=>'KTV'),
		array('id'=>'130','name'=>'便利店'),
		array('id'=>'135','name'=>'烘培蛋糕店'),
		array('id'=>'140','name'=>'西餐厅/中餐厅'),
		array('id'=>'150','name'=>'咖啡/甜品店'),
		array('id'=>'160','name'=>'酒吧/夜店'),
		array('id'=>'170','name'=>'小吃店/零食店'),
		array('id'=>'180','name'=>'网咖/网吧'),
		array('id'=>'190','name'=>'主题公园/景区'),
		array('id'=>'200','name'=>'副食品店'),
		array('id'=>'500','name'=>'其他'),
	),
	'PRIZES_GRADE' => array( //奥运活动奖品等级
		array(id => 1, name=>'1等奖'),
		array(id => 2, name=>'2等奖'),
		array(id => 3, name=>'3等奖'),
		array(id => 4, name=>'阳光普照'),
	),

	//ib数据库同步
    'BBT_DB' => array(
	    'DB_TYPE' => 'mysql',
	    'DB_HOST' => 'baobaotang.mysql.rds.aliyuncs.com',
	    'DB_NAME' => 'baobaotang',
	    'DB_USER' => 'baobaot_ibeacon',
	    'DB_PWD' => 'kYnqqdK6MPGrb2b',
	    'DB_PORT' => '3306',
		'DB_CHARSET'=> 'utf8',
	),
	'ACTIVITY_PAGEID' => '3088340',//摇一摇活动页，设备激活时使用
    'PREVIEW_PAGEID' => '2579006',//摇一摇预览页，设备停用时使用

	'TASK_PREFIX' => 'bbtTask_',
	'PRIZES_TIMEOUT' => 60*10,  //奖品暂存时间
	'TIXIAN_COUNT_TOTAL_MONTH' => 3,  //每个月没人提现次数限制

	'HUODONG_PRIZES_COUNT_LIMIT' => 1,
);